Skip to content

basusoumya/EpidemicMixture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

MixtureEpidemics

MixtureEpidemics is the companion code for the experiments in the paper "Learning Mixtures of Graphs from Epidemic Cascades".

Among other, it provides code for generating two random graphs, as well as epidemics spreading on the mixture of these two graphs.

As it, it runs the three experiments in the paper:

  • error vs number of samples
  • histogram of errors for fixed number of samples
  • number of samples needed for given precision vs degree of the graphs

Installation

The code is in a Jupyter notebook. If not already installed, use the package manager pip to install jupyter notebook.

pip install notebook

You can find the installation documentation for the Jupyter platform, on ReadTheDocs.

Usage

To use, lauch Jupyter notebook on the folder in which the code is:

cd [path_to_code]/CodeMixture
jupyter notebook

Then, select the file "MixtureEpidemics.ipynb", and click "Run".

About

In this repository we provide the implementation of the algorithm designed in

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published